const lazyComponents = (url) => import(`@views/${url}.vue`);

const BasicLayout = () => import('@lay/basicLayout/basicLayout.vue');

const Home = lazyComponents('HomeView');

export const routers = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/',
    name: 'basicLayout',
    component: BasicLayout,
    children: [
      {
        path: 'home',
        component: Home,
      }
    ]
  }
]